<template>
    <div></div>
</template>
<script>
import { storeWechatLink } from 'request';
import { Toast } from 'mint-ui';
import { getUrlParameters } from "methods/baseinfo.js";
export default {
    name:'autumn',
    // beforeRouteEnter(to,from,next){
    //     if(sessionStorage.getItem("isHkb")){
    //         next(vm=>{
    //             vm.$store.commit('increment','优惠券核销');
    //         });
    //     }else{ 
    //         //如果没有登陆就先进入登陆页，然后跳转回来
    //         next(vm=>{
    //             vm.$router.push({ path:'/login',query:{ pageUrl: 'writeOff' }});
    //         })
    //     }
    // },
    created(){
        storeWechatLink({}).then(res=>{
            console.log(res.data.url)
            if(res.rspCode == '0000'){
                window.location.href = res.data.url;
            }else{
                Toast({message:res.rspMessage || '请求失败'});
            }
        })
    }
}
</script>
<style lang="less" scoped>

</style>
